package club.beimeng.demos.de2021年4月14日;

import java.util.Scanner;

public class Two{
    public static void main(String[] args)
    {
        Scanner cin = new Scanner(System.in);

        int max = 0;
        int loc = 0;

        for (int i = 0; i < 100; i ++)
        {
            int a = cin.nextInt();

            if (a > max)
            {
                max = a;
                loc = i + 1;
            }
        }

        System.out.println(max);
        System.out.println(loc);
    }
}


/*
 *
 * @author Mr.Bao
 * @date
 */